import axios from 'axios'
// 获取学科列表
export function getSubjectList() {
  return axios({
    url: '/mock/content/allSubject',
    method: 'get'
  })
}
// 获取面试题列表
export function getInerviewList(params) {
  return axios({
    url: '/mock/content/inerview',
    method: 'get',
    params
  })
}
// 添加面试题
export function addInerview(data) {
  return axios({
    url: '/mock/content/inerview',
    method: 'post',
    data
  })
}
// 获取面试题详情
export function getInerviewDetail(id) {
  return axios({
    url: '/mock/content/inerview',
    method: 'get',
    params: { id }
  })
}
// 编辑面试题
export function editInerview(data) {
  return axios({
    url: '/mock/content/inerview',
    method: 'put',
    data
  })
}

// 删除面试题
export function delInerview(id) {
  return axios({
    url: '/mock/content/inerview',
    method: 'delete',
    params: { id }
  })
}
